package com.nari.ies.server.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface CurveMapper {

    List<Map<String, Object>> queryHistoryName(String yc_id);

    List<Map<String, Object>> getHisData(Map<String, Object> params);

    List<Object> ultraData(String plantId, Date startDate, Date endDate);


    List<LinkedHashMap<String, Object>> getDQYCData(@Param("plantId") String plantId, @Param("startDate") Date startDate);

    List<Map<String, Object>> getDataCDQYC(String plantId, Date startDate, Date endDate);

    Object getDQYCCurrent15Data(String column,String plantId, Date today);

    Object getDQYCCurrent5Data(String columnStart, String columnEnd, String column, String plantId, Date today, Integer num);

    List<LinkedHashMap<String,Object>> getDQPoint5Data(@Param("plantId") String plantId, @Param("startDate") Date startDate);

    List<LinkedHashMap<String,Object>> getCDQPoint5Data(String plantId, Date endDate);
}
